package com.atguigu.flink.chapter05.source;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @Author lzc
 * @Date 2022/7/4 11:10
 */
public class Flink01_Source_File {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);
        System.out.println(env.getParallelism());
    
        env.readTextFile("hdfs://hadoop162:8020/words.txt").print();
        
        
        
        env.execute();
    }
}
